package com.example.lenovo.myapplication;

import android.os.AsyncTask;

/**
 * Created by Lenovo on 2018/7/2.
 */

public class DeleteAsyncTask extends AsyncTask<Integer,Void,Void>{
    private NoteDB noteDB;

    public DeleteAsyncTask(NoteDB noteDB) {
        this.noteDB = noteDB;
    }

    @Override
    protected Void doInBackground(Integer... params) {
        noteDB.deleteById(params[0]);
        return null;
    }

}
